/**
 * Site header
 */

#skiplink {
  position: absolute;
  clip: rect(1px 1px 1px 1px);
  overflow: hidden;
  height: 1px;

  &:focus {
    position: static;
    clip: auto;
    overflow: visible;
    height: auto;
  }
}

.site-header {
    // Positioning context for the mobile navigation icon
    position: relative;
}

html[dir="rtl"] .site-title {
   float: right;
}

.site-title {
    margin-left: 0px;
    padding-left: 0px;
    letter-spacing: -1px;
    float: left;

    img {
        max-width: 250px;
        margin-bottom: 14px;
        margin-top:14px;

        @include media-query($on-palm) {
            max-width: 200px;
        }
    }

    &,
    &:visited {
        color: $grey-color-dark;
    }
}

/**
 * Hero
 */
.hero.tall {
    padding: 55px 0;
    text-align: center;
    background: #E1DCD2 url(/images/hero.jpg) no-repeat center center;
    background-size: cover;


    @include media-query($on-palm) {
        padding: 50px 0;
    }

    div.container {
        background-color: rgba(254,254,254,0.7);
        border: 1px solid rgba(254,254,254,0.85);
        border-radius: 10px;

        padding: 30px;
        width: 90%;
        max-width: 950px;
        margin: 0 auto;

        @include media-query($on-palm) {
            max-width: 90%;
            border-radius: 0;
            padding: 10px 10px;
        }
    }
    h1 {
        font-weight: 300;
        font-size: 40px;
        color: #2C3C69;
        line-height: 1.4;
        margin: 0 0 0.35em;

        @include media-query($on-palm) {
            font-size: 26px;
        }
        span {
            color: #de8216;
            font-weight: bold;
        }
    }
    h2 {
        font-weight: normal;
        margin-bottom: 0;
        font-size: 20px;
    }
    p {
        color: #2C3C69;
    }
}

.buttons {
    margin-top: 20px;
    @include media-query($on-palm) {
        margin-top: 10px;
    }
    .tal, .tar {
        a {
            text-align: center;
        }
    }
    a {
        font-size: 32px;
        font-weight: 300;
        padding: 6px 18px;
        border: 2px solid #2a7ae2;
        color:#2a7ae2;
        border-radius: 8px;
        width: 175px;

        @include media-query($on-palm) {
            font-size: 20px;
            border-radius: 6px;
            width: 110px;
        }
        &:visited {
            border-color: #2a7ae2;
        }
        &:hover {
            text-decoration: none;
            border-color: #000;
            color: #000;
        }
    }
    a.accent {
        background: #2a7ae2;
        color: #fff;
        &:hover {
            background: #1756a9;
            border-color: #1756a9;
            color: #fff;
            text-decoration: none;
        }
    }
}

html[dir="rtl"] .hero.slim div.container {
   text-align: right;
}
.hero.slim {
    padding-top:25px;
    padding-bottom: 18px;
    text-align: center;
    background: #E1DCD2 url(/images/hero.jpg) no-repeat center center;
    background-size: cover;

    div.container {
        @extend .wrapper;
        text-align:left;
        width: 90%;
        margin: 0 auto;
        h1 {
            font-weight: normal;
        }

        @include media-query($on-palm) {
            max-width: 90%;
            border-radius: 0;
        }
    }
    h1 {
        font-weight: 300;
        margin-bottom: 10px;
        font-size: 46px;
        display: inline-block;
        width: auto;
        background-color: rgba(254,254,254,0.5);
        border-radius: 8px;
        padding: 10px 20px;


        @include media-query($on-palm) {
            font-size: 30px;
            margin-top:10px;
        }
        span {
            color: $secondary-color;
        }
    }
}

.sponsors {
    h1, h2 {
        margin-top: 30px;
        margin-bottom: 0;
    }
    img {
        @include media-query($on-palm) {
            max-height: 70px;
            max-width: 180px;
            width: auto;
        }
    }
}

.sponsor-logo-large {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.sponsor-logo-small {
    padding: 10px;
}

.home {
    margin-top:0;
    .grid-container {
        padding-top: 0;
    }
}

.grid-container {
    padding: 20px;

    @include media-query($on-palm) {
        padding: 0;
    }
}

/**
 * Donate footer
 */
.donate-footer {
    border-top: 1px solid $grey-color-light;
    background-color: #f8f8f8;
    padding: ($spacing-unit - 4px) 0;
    margin-top: 30px;

    h2 {
        line-height: 1;
    }

    .buttons {
        line-height: 48px;
        margin-top: 24px;

        a {
            font-size: 24px;
        }

    }
}

/**
 * Site footer
 */
.site-footer {
    border-top: 1px solid $grey-color-light;
    padding-top: $spacing-unit;
}

.footer-heading {
    font-size: 18px;
    margin-bottom: $spacing-unit / 2;
}

.contact-list,
html[dir="rtl"] .social-media-list {
    direction: ltr;
    text-align: right;
}
.social-media-list {
    list-style: none;
    margin-left: 0;
}

.social-media-list a {
    display: flex;
    align-items: center;
    gap: 4px;
}
.social-media-list a:hover {
    text-decoration: none;
}
.social-media-list a:hover span {
    text-decoration: underline;
}

.social-media-list i {
    color: $grey-color;
    vertical-align: middle;
}

.footer-col-wrapper {
    font-size: 15px;
    color: $text-color;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: $spacing-unit;

    @include media-query($on-palm) {
        grid-template-columns: 1fr;
    }
}

.footer-col {
    margin-bottom: $spacing-unit / 2;
}

.footer-newsletter-col {
    h6 {
        font-size: 14px;
        line-height: 1.2;
        font-weight: 700;
        margin-bottom: 0;
    }
}

@include media-query($on-palm) {
    .footer-newsletter-col {
        margin-top: 40px;
    }
}

/**
 * Page content
 */
.page-content {
    padding-top: $spacing-unit;

    .canonical-warning {
        padding: 5px;
        margin: 0.50em 0;
        background-color: #FFDDDD;
        border: thin solid #DDBBBB;
        overflow: hidden;

        i {
            margin-left: 3px;
        }
    }
}

.page-heading {
    font-size: 20px;
}

.post-list {
    direction: ltr;
    margin-left: 0;
    list-style: none;

    h2 {
        margin-bottom:5px;
    }

    > li {
        margin-bottom: $spacing-unit;
    }

    .post-excerpt {
        margin-top: 5px;
    }
}

.post-meta {
    font-size: $small-font-size;
    color: $grey-color;
}


.post-link {
    display: block;
    font-size: 28px;

    @include media-query($on-palm) {
        font-size: 20px;
    }
}

.home .post-link {
    font-size: 22px;
}

.rss-subscribe i {
    color: #ee802f;
    font-size: 18px;
	vertical-align: -10%;
}

summary {
    cursor: pointer;
}


/**
 * Posts
 */
.post-header {
    margin-bottom: $spacing-unit;
}

.post-title {
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 1;

    @include media-query($on-laptop) {
        font-size: 36px;
    }
}

.post-content {
    margin-bottom: $spacing-unit;

    h2 {
        font-size: 32px;

        @include media-query($on-laptop) {
            font-size: 28px;
        }
    }

    h3 {
        font-size: 26px;

        @include media-query($on-laptop) {
            font-size: 22px;
        }
    }

    h4 {
        font-size: 20px;

        @include media-query($on-laptop) {
            font-size: 18px;
        }
    }
}

/*
 * Images in How It Works
 */
.howitworks-figure {
  text-align: center;
}

.howitworks-figure img {
  width: 600px;
  padding: 10px;
}

.well {
    background-color: rgba(234,234,234,0.7);
    border: 1px solid rgba(234,234,234,0.85);
    border-radius: 10px;

    padding: 30px;
    width: 90%;
    max-width: 950px;
    margin: 0 auto 2em;

    @include media-query($on-palm) {
        max-width: 90%;
        border-radius: 0;
        padding: 10px 10px;
    }
}


.sponsor-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    & > a {
        display: block;
        flex-basis: 25%;
        box-sizing: border-box;
        padding: 20px;

        @include media-query($on-palm) {
            flex-basis: 33.3%;
        }
        @include media-query($smallest) {
            flex-basis: 50%;
        }

        img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            padding: 0;

        }
    }
}

.boxed {
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}
